package edu.sctu.alex.June.day20150615.serialization;

import java.io.Serializable;

/**
 * Created by alex on 2015/6/15.
 */
public class Person implements Serializable {

    private String name;

    private Integer age;

    private Gender gender;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Gender getGender() {
        return gender;
    }

    public void setGender(Gender gender) {
        this.gender = gender;
    }

    public Person(){

        System.out.println("none-arg constructor");
    }

    public Person(String name,Integer age,Gender gender){
        System.out.println("arg constructor");

        this.age = age;
        this.name = name;
        this.gender =gender;

    }

    @Override
    public String toString(){

        return "["+ name+","+age+","+gender+"]";
    }
}
